var assert = require('assert');
var hasChineseChar = require('../src/hasChineseChar');

describe('hasChineseChar', function() {
    it('should return false when chinese char is not present', function() {
        assert.equal(hasChineseChar('abc'), false);
    });

    it('should return false when input is falsy', function() {
        assert.equal(hasChineseChar(), false);
    });

    it('should return true when chinese is present', function() {
        assert.equal(hasChineseChar('摩卡'), true);
    });
});